﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Architecture.Repository.Migrations
{
    public partial class b7 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "ShoppingId",
                table: "RawMaterials",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "ShoppingId",
                table: "PackagingMaterials",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "ShoppingId",
                table: "AuxiliaryMaterials",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "ShoppingId",
                table: "Additives",
                type: "int",
                nullable: false,
                defaultValue: 0);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "ShoppingId",
                table: "RawMaterials");

            migrationBuilder.DropColumn(
                name: "ShoppingId",
                table: "PackagingMaterials");

            migrationBuilder.DropColumn(
                name: "ShoppingId",
                table: "AuxiliaryMaterials");

            migrationBuilder.DropColumn(
                name: "ShoppingId",
                table: "Additives");
        }
    }
}
